/**
 * getStyle.js
 * Version: 1.0
 *
 */
var getStyle = function () {

        //全局符号化对象
        var styles = {
            'pictureText': new ol.style.Style({
                image: new ol.style.Icon({
                    src: 'img/RedPin1LargeB.png'
                }),
                text: new ol.style.Text({ //文本样式
                    font: 'bold 9px Arial',
                    overflow: true,
                    fill: new ol.style.Fill({
                        color: [255, 255, 0]
                    }),
                    stroke: new ol.style.Stroke({
                        color: 'rgba(255, 234, 120,0)',
                        width: 3
                    })
                })
            })
        };

        /** 图片和文字显示样式
         * @param {*} feature  获取显示的数值
         */
        function pictureTextStyle(feature){
            var tmpstyle=styles['pictureText'];
            tmpstyle.getText().setText(feature.get('data'));
            return tmpstyle;
        }

};